﻿@using BonjourQuotation.UI.Models.SetupModel
@model SetupPaymentTypesGridViewModel
@{
    
}
@using (@Html.BeginForm("AddNewPaymentType", "Setup", FormMethod.Post, new { id = "AddNewPaymentTypeForm" }))
{
   <div id="ErrorMessagesDivPopUp">
        <label for="Validation" id="errorMessageClient" class="errorMessage"></label>
        @if (Model.Message != null)
        {
            @Html.LabelForModel(Model.Message, new { @class = "errorMessage", id = "errorMessageServer" })
        }
    </div>
    
    Model.SelectedPaymentTypeBankID = Model.Rows[0].BankID;
    <div class="pull-right" style="margin-bottom:15px;">
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.SelectedPaymentTypeBankIDText)</span>
                    @Html.DropDownListFor(model => Model.SelectedPaymentTypeBankID, new SelectList(Model.BankID, "Value", "Text"), "Select", new { @class = "PayTypeAddElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation BankTypeDrop Required" })
                    @Html.DropDownListFor(model => Model.Rows[0].BankID, new SelectList(Model.BankID, "Value", "Text"), "Select", new { @class = "RoomGridDropHide" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-6">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].PaymentTypeCode)</span>
                    @Html.TextBoxFor(model => model.Rows[0].PaymentTypeCode, new { @class = "PayTypeAddElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength10 Required" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-9">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].PaymentTypeDescription)</span>
                    @Html.TextBoxFor(model => model.Rows[0].PaymentTypeDescription, new { @class = "PayTypeAddElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength30 Required" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-2">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.Rows[0].IsActive)</span>
                    @Html.CheckBoxFor(model => model.Rows[0].IsActive, new { @class = "PayTypeAddElementChange" })
                </div>
            </div>
        </div>
        <div class="SaveCancelDiv">
            <button class="btn14 btn50" type="button" onclick="$('#cboxClose').click()">Cancel</button>
            <button class="btn14 btn50" type="button" id="PaymentTypeAddBtn">Save</button>
        </div>
    </div>
}





